﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class product_OnlineSales_Item5 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      Object Quantity = Session["Quantity"];
        if (Quantity != null)
        {

            if (!Util.IsBlank((String)Quantity))
            {
                this.Quantity.Text = "Quantity:";
                this.Quantity.Visible = true;
                this.Quantity.Text = (String)Quantity;
                this.Quantity.Visible = true;

            }
            else
            {
                this.Quantity.Visible = false;

            }

        }

        Object Item1 = Session["Product"];
        if (Item1 != null)
        {

            if (!Util.IsBlank((String)Item1))
            {
                this.Item1.Text = "Product:";
                this.Item1.Visible = true;
                this.Item1.Text = (String)Item1;
                this.Item1.Visible = true;

            }
            else
            {
                this.Item1.Visible = false;

            }
            Object DiscountedAmount2 = Session["Discount"];
            if (DiscountedAmount2 != null)
            {

                if (!Util.IsBlank((String)DiscountedAmount2))
                {
                    this.DiscountedAmount2.Text = "Discount:";
                    this.DiscountedAmount2.Visible = true;
                    this.DiscountedAmount2.Text = (String)DiscountedAmount2;
                    this.DiscountedAmount2.Visible = true;

                }
                else
                {
                    this.DiscountedAmount2.Visible = false;

                }


            }
            


  Object DiscountedPrice2 = Session["Price"];
  if (DiscountedPrice2 != null)
  {

      if (!Util.IsBlank((String)DiscountedPrice2))
      {
          this.DiscountedPrice2.Text = "Price:";
          this.DiscountedPrice2.Visible = true;
          this.DiscountedPrice2.Text = (String)DiscountedPrice2;
          this.DiscountedPrice2.Visible = true;

      }
      else
      {
          this.DiscountedPrice2.Visible = false;

      }
  }


        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["Quantity"] = Quantity.Text;
        Session["Product"] = Item1.Text;
        Session["Discount"] = DiscountedAmount2.Text;

        Server.Transfer("~/product/card/user/Machine.aspx");
     
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("OnlineSales.aspx");
    }
}